<?php
    /*
    Plugin Name: Информация о системе
    Plugin URI: http://shopos3.com/plugins/
    Description: 
    Version: 1.0
    Author URI: http://shopos3.com/
    */

    defined('_VALID_OS') or die('Direct Access to this location is not allowed.');

    add_action('main_page_admin', 'main_page_system_info');

    function systeminfo_readonly ($value)
    {
        _e(add_button('main_page', 'main_page_system_info', 'info' ));
    }

  
    function main_page_system_info()
    {
        phpinfo();
    }

    function systeminfo_install()
    {
        add_option('systeminfo', '' , 'readonly');
    }

    add_action('admin_menu', 'systeminfo_admin_menu');

    function systeminfo_admin_menu()
    {
        add_plug_menu('Сервер инфо', 'plugins_page.php?main_page=main_page_system_info');
    }
?>